package org.example.demo21.decorator.coffee;

import org.example.demo21.decorator.Coffee;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 *
 * @author guocong
 * @since 2024/4/1 10:34
 */
@Component
public class Black implements Coffee {
    @Override
    public String desc() {
        return "美式";
    }

    @Override
    public BigDecimal price() {
        return new BigDecimal("8");
    }

}
